package cn.fsd.mapper;

import cn.fsd.domain.Transfer;
import cn.fsd.query.BaseQuery;
import cn.fsd.query.dispatch.TransferQuery;
import cn.fsd.vo.storeroom.transfer.TransferCommodityTaskVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface TransferMapper {
    int deleteByPrimaryKey(String transfer_id);

    int insert(Transfer record);

    Transfer selectByPrimaryKey(String transfer_id);

    Transfer selectByOrderId(String order_id);

    List<Transfer> selectAll();

    int updateByPrimaryKey(Transfer record);

    /* 分页查询 */
    List<Transfer> findByPage(BaseQuery query);

    List<TransferCommodityTaskVO> findByStoreroomByPage(TransferQuery query);


    List<TransferCommodityTaskVO> findByStationByPage(TransferQuery query);
}